package com.itcast.elasticsearch.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author sai
 * @version 1.0
 * @date 2021/8/19 16:21
 */
@Data
@TableName("goods")
public class GoodsEntity {

    /**
     * 商品ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 商品标题
     */
    private String title;

    /**
     * 商品价格
     */
    private BigDecimal price;

    /**
     * 库存
     */
    private Integer num;

    /**
     * 商品类别
     */
    private String category;

    /**
     * 品牌
     */
    private String brand;

}